package page418;

public class Test3 {
    public static void main(String[] args) {
        ThreadJoin a = new ThreadJoin();
        Thread huochesiji = new Thread(a);
        Thread zhuangyungong = new Thread(a);
        Thread cangkuguanliyuan = new Thread(a);
        huochesiji.setName("货车司机");
        zhuangyungong.setName("装运工");
        cangkuguanliyuan.setName("仓库管理员");
        a.setThreadJoin1(zhuangyungong);
        a.setThreadJoin2(cangkuguanliyuan);
        huochesiji.start();
    }
}

